
let str1 = '6/08/2021';
let str2 = 'June 8,2021';
let date1 = new Date(Date.parse(str1));
let date11 = new Date(str1);
console.log(date1);
console.log(date11);

let date2 = new Date(Date.parse(str2));
let date22 = new Date(str2);
console.log(date2);
console.log(date22);

let date3 = new Date(Date.UTC(2021,0));
let date33 = new Date(Date.UTC(2021,4,5,5,5,5))
console.log(date3);
console.log(date33);

let date4 = new Date(2020,4);
let date44 = new Date(2020,4,5,5,5,5);
console.log(date4);
console.log(date44);